[GI] Fix transfer annotation on gtk_dialog_add_button()
authorSteve Frécinaux <code@istique.net>
Thu, 20 Jan 2011 10:53:47 +0000 (11:53 +0100)
committerSteve Frécinaux <code@istique.net>
Thu, 20 Jan 2011 10:55:38 +0000 (11:55 +0100)
The transfer annotation was (transfer full) but the caller actually
doesn't own a reference of the object. This made the pygobject test suite
crash because pygobject was trying to unref the returned GtkButton
instance.

https://bugzilla.gnome.org/show_bug.cgi?id=639949

gtk/gtkdialog.c

index 0aa57773d5f9280a66b2bac6fd305779b1d164c1..6a1d51f147d323dc44244434c27aaf5a960951e8 100644 (file)
@@ -765,7 +765,7 @@ gtk_dialog_add_action_widget (GtkDialog *dialog,
  * appended to the end of the dialog's action area. The button widget is
  * returned, but usually you don't need it.
  *
- * Return value: (transfer full): the button widget that was added
+ * Return value: (transfer none): the button widget that was added
  **/
 GtkWidget*
 gtk_dialog_add_button (GtkDialog   *dialog,